package cn.jjxx.modules.sbfb.service.impl;

import java.util.List;
import java.util.Map;

import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.sbfb.mapper.EqProjectInfoMapper;
import cn.jjxx.modules.sbfb.entity.EqProjectInfo;
import cn.jjxx.modules.sbfb.service.IEqProjectInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: 项目信息表
 * @Description: 项目信息表
 * @author yw
 * @date 2021-12-23 16:17:35
 * @version V1.0   
 *
 */
@Transactional
@Service("eqProjectInfoService")
public class EqProjectInfoServiceImpl  extends CommonServiceImpl<EqProjectInfoMapper,EqProjectInfo> implements  IEqProjectInfoService {

	@Override
	public boolean insertBatch(List<EqProjectInfo> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<EqProjectInfo> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}

	@Override
	public List<Map> SelectProjectTypeCount(String orgId) {
		return baseMapper.SelectProjectTypeCount(orgId);
	}

	@Override
	public List<Map> SelectRoadType() {
		return baseMapper.SelectRoadType();
	}

	@Override
	public List<Map> SelectProjectType() {
		return baseMapper.SelectProjectType();
	}

	@Override
	public List<Map> SelectEngineeringType() {
		return baseMapper.SelectEngineeringType();
	}

	@Override
	public List<Map<String,Object>> selectMainProjects() {
		return baseMapper.selectMainProjects();
	}
}
